<%@page import="models.Area"%>
<%@page import="models.SolutionSubmission"%>
<%@page import="models.Location"%>
<%@page import="models.Customer"%>
<%@ page import="java.util.*, java.text.*" %>
<%@ page import="com.googlecode.objectify.Objectify, com.googlecode.objectify.ObjectifyService, com.googlecode.objectify.Query" %>

<% 

Objectify ofy = ObjectifyService.begin();

%>


<!-- content -->
<!--<a id="mainContent" name="mainContent"/>-->
<div id="lotusContent">
<!--<h1>Savvy Solutions</h1>
<div class="lotusDetails">The Global Operations Excellence collection of Savvy Solutions resulting in cost savings for the company</div>-->
<table>
<tr>
<td colspan="3"><b>Filter By : </b></td>
</tr>
<tr>
<td> Customer : </td><td>
<input name="%%Surrogate_cmbCustomer" type="hidden" value="1">
<select name="cmbCustomer" id="cmbCustomer" class="text-edit">
<option>--Select Customer--

<% 

Query<Customer> qqq = ofy.query(Customer.class).order("custName");

// java.util.Date nowDate = new java.util.Date();  // = '2006' java.sql.Date nowDate2 = new java.sql.Date((new Date()).getTime()); String currentYear2 = formatNowYear.format(nowDate2); // = '2006'
for ( Customer f : qqq.fetch() ) {
	out.println("<option>"+ f.getCustName());
}

%>

</select>
 </td><td></td>
</tr>
<tr>
<td> Location : </td><td>
<input name="%%Surrogate_cmbLocation" type="hidden" value="1">
<select name="cmbLocation" id="cmbLocation" class="text-edit">
<option>--Select Location--
<% 

Query<Location> q = ofy.query(Location.class).order("LocationName");

// java.util.Date nowDate = new java.util.Date();  // = '2006' java.sql.Date nowDate2 = new java.sql.Date((new Date()).getTime()); String currentYear2 = formatNowYear.format(nowDate2); // = '2006'
for ( Location f : q.fetch() ) {
	out.println("<option>"+ f.getLocationName());
}

%>


</select>
 </td><td></td>
</tr>
<tr>
<td> Process : </td><td colspan="2">
<input name="%%Surrogate_cmbProcessarea" type="hidden" value="1">
<select name="cmbProcessarea" id="cmbProcessarea" class="text-edit">
<option>--Select Process Area--

<% 

Query<Area> qq = ofy.query(Area.class).order("areaName");

// java.util.Date nowDate = new java.util.Date();  // = '2006' java.sql.Date nowDate2 = new java.sql.Date((new Date()).getTime()); String currentYear2 = formatNowYear.format(nowDate2); // = '2006'
for ( Area f : qq.fetch() ) {
	out.println("<option>"+ f.getAreaName());
}

%>


</select>
 </td>
</tr>
<tr><td></td><td></td><td></td></tr>
<tr>
<tr><td></td><td></td><td></td></tr>
<tr>
<td style="vertical-align: bottom;" > Posted Date : </td><td>From:&nbsp;&nbsp;
<input name="fromDt" value="" id="fromDt" class="text-edit"> <A 
                        onmouseover="window.status='Click here to select date from calender';return true;" 
onclick='showCalendar(this, document.forms[0].fromDt, "mm/dd/yyyy","en",1)'
                        onmouseout="window.status='';return true;" href="javascript:;"><img src="/img/bx.gif" width="16" height="15" alt="Select Date" border="0"></a></td>
<td>To:&nbsp;&nbsp;
<input name="toDt" value="" id="toDt" class="text-edit"><A 
                        onmouseover="window.status='Click here to select date from calender';return true;" 
onclick='showCalendar(this, document.forms[0].toDt, "mm/dd/yyyy","en",1)'
                        onmouseout="window.status='';return true;" href="javascript:;"><img src="/img/bx.gif" width="16" height="15" alt="Select Date" border="0"></a></td>
</tr>
<tr><td></td><td></td><td></td></tr>
<tr><td><span class="lotusBtn lotusBtnAction lotusLeft">
<a href="javascript:Searchdocs()"><b>Show</b></a>
</span></td>
<td colspan="2"><span class="lotusBtn lotusBtnAction lotusLeft">
<a href="javascript:Viewall()"><b>Clear</b></a>
</span></td>
</tr>
</table>
<br>
<div id="filters" class="lotusPaging">
</div>
<div id='view' >
<b>Please wait...<img src="/img/ajax-loader.gif">...while your request is processed.</b>
</div>
<div id="srchResult" style="display:none">
<b>Please wait...<img src="/img/ajax-loader.gif">...while your request is processed.</b>
</div>
<br>
<div class="lotusPaging">
</div>
</div>
<!--End of Lotus Content-->
</div>
<!--End of Lotus Main-->
</div>
<!-- Footer gets moved to within Frame div in weblog.vm so closing tags need to go in weblog.vm - MTodd November 1 2007 </body> </html> -->
</div>
</div>
